package main

import "fmt"

func main() {
	defer defer1()
	defer defer2()

	m := map[int]string{}
	m[1] = "wdc"

	fmt.Println(m)
}

func defer1() {
	fmt.Println(1)
}

func defer2() {
	fmt.Println(2)
	defer defer3()
	defer defer4()
}

func defer3() {

	fmt.Println(3)
}
func defer4() {

	fmt.Println(4)
}
